package com.uex.dev.manage.common.base;

import lombok.AllArgsConstructor;

/**
 * @author wangc
 * @create 2023/10/27
 * @description
 */
@AllArgsConstructor
public enum ResultCodeConstants {
    TOKEN_TIMEOUT_ERROR(-1000, "token超时"),
    PARAM_ERROR(-2, "参数错误"),
    SYSTEM_ERROR(-1, "系统繁忙，请稍后重试"),
    SUCCESS(0, "操作成功"),
    SESSION_ERROR(-2000, "session错误"),
    AUTHENTICATION_REQUIRED_ERROR(-3000, "缺少OpenID或Token认证信息"),
    ;
    private final int code;
    private final String ResultDesc;

    public int getCode() {
        return this.code;
    }

    public String getResultDesc() {
        return this.ResultDesc;
    }

}
